﻿namespace MicroCloud.Utils
{
    /// <summary>
    /// 部门机构标记
    /// <para>用于标示部门机构属性/字段</para>
    /// </summary>
    [AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = true)]
    public class DepartmentFlagAttribute : Attribute
    {
        #region 常量
        /// <summary>
        /// 当前部门机构标识
        /// </summary>
        public const string CurrentToken = "@CurrentDepartmentId";

        /// <summary>
        /// 当前及子级部门机构标识
        /// </summary>
        public const string CurrentChildrenToken = "@CurrentChildrenDepartmentId";

        /// <summary>
        /// 当前及父级部门机构标识
        /// </summary>
        public const string CurrentParentToken = "@CurrentParentDepartmentId";

        /// <summary>
        /// 当前及父级子级部门机构标识
        /// </summary>
        public const string CurrentParentChildrenToken = "@CurrentParentChildrenDepartmentId";

        /// <summary>
        /// 子级部门机构标识
        /// </summary>
        public const string ChildrenToken = "@ChildrenDepartmentId";

        /// <summary>
        /// 父级部门机构标识
        /// </summary>
        public const string ParentToken = "@ParentDepartmentId";

        /// <summary>
        /// 父级子级部门机构标识
        /// </summary>
        public const string ParentChildrenToken = "@ParentChildrenDepartmentId";

        #endregion
    }
}
